package model.jgap;
//
//import model.trader.MomentumTrader;
//import model.trader.Trader;
//
//import org.jgap.Configuration;
//import org.jgap.Gene;
//import org.jgap.InvalidConfigurationException;
//import org.jgap.impl.CompositeGene;
//import org.jgap.impl.IntegerGene;
//
////AMXX: this is not really needed til we have more parameters..
public class MomentumTraderGene {//extends CompositeGene implements TraderGene{
//
//	public MomentumTraderGene(Configuration conf) throws InvalidConfigurationException {
//		super(conf);
//		//AMXX: this sort of thing is the problem...
//		addGene(new IntegerGene(conf,2,8));
//	}
//	
//	public Trader getTrader() {
//		int daysRequiredToTrade = ((IntegerGene)geneAt(0)).intValue();
//		//AMXX: temp..
//		return new MomentumTrader(1,daysRequiredToTrade);
//	}
//	
////	AMXX: dodgy copy paste all over the custom gene types..
//	protected Gene newGeneInternal() {
//	    try {
//	      MomentumTraderGene compositeGene = new MomentumTraderGene(getConfiguration());
//	      compositeGene.setConstraintChecker(getConstraintChecker());
//	      Gene gene;
////	      int geneSize = m_genes.size();
////	      for (int i = 0; i < geneSize; i++) {
////	        gene = (Gene) m_genes.get(i);
////	        compositeGene.addGene(gene.newGene(), false);
////	      }
//	      return compositeGene;
//	    }
//	    catch (InvalidConfigurationException iex) {
//	      throw new IllegalStateException(iex.getMessage());
//	    }
//	  }
//	
//	
}
